home *** CD-ROM | disk | FTP | other *** search
- Path: symiserver2.symantec.com!usenet
- From: Walter Bright <wbright@symantec.com>
- Newsgroups: comp.lang.c++
- Subject: Re: BC++ 4.52 Intel Floating Point Format
- Date: Sun, 03 Mar 1996 16:58:17 -0800
- Organization: Symantec Development Tools Business Unit
- Message-ID: <313A4029.20D8@symantec.com>
- References: <31363716.17D8@lexicon.net.au>
- NNTP-Posting-Host: 155.64.77.55
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Lucas Giezen wrote:
- > Does anyone have the format of the bits in the internal representation
- > for the PC? (We already have the mainframe format). Also the
- > representations of 0 and other oddities would be appreciated.
-
- float: 32 bits -> 1 sign bit, 7 exponent bits, 24 significand bits
- double: 64 bits -> 1 sign bit, 10 exponent bits, 53 significand bits
- long double: 80 bits -> 1 sign bit, 15 exponent bits, 64 significand bits
-
- float and double each have an implied 'hidden' bit.
-
- 0: sign is 1 or 0, exponent and significand are all zeros.
-